package cn.foolishbird.mynah.system.po;

import cn.foolishbird.crow.enumeration.AbleEnum;
import cn.foolishbird.crow.enumeration.GenderEnum;
import cn.foolishbird.crow.mybatis.plus.po.CrowPO;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

/**
 * 用户对象 sys_user
 *
 * @author foolish bird
 */
@Getter
@Setter
@TableName(value = "sys_user", autoResultMap = true)
public class SysUserPO extends CrowPO {

    /**
     * 用户账号
     */
    @TableField(value = "username")
    private String username;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 手机号码
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 用户邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 用户真实姓名
     */
    @TableField(value = "real_name")
    private String realName;

    /**
     * 用户昵称
     */
    @TableField(value = "nickname")
    private String nickname;

    /**
     * 用户头像
     */
    @TableField(value = "avatar")
    private String avatar;

    /**
     * 用户性别
     */
    @TableField(value = "gender")
    private GenderEnum gender;

    /**
     * 帐号状态（1正常 2停用）
     */
    @TableField(value = "user_status")
    private AbleEnum userStatus;

    /**
     * 最后登录时间
     */
    @TableField(value = "login_date")
    private Long loginDate;

    /**
     * 最后登录IP
     */
    @TableField(value = "login_ip")
    private String loginIp;

}
